﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005E9 RID: 1513
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FriendChallengeInfo : IMessage<FriendChallengeInfo>, IMessage, IEquatable<FriendChallengeInfo>, IDeepCloneable<FriendChallengeInfo>, IBufferMessage
	{
		// Token: 0x17001363 RID: 4963
		// (get) Token: 0x06004400 RID: 17408 RVA: 0x000B9C33 File Offset: 0x000B7E33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FriendChallengeInfo> Parser
		{
			get
			{
				return FriendChallengeInfo._parser;
			}
		}

		// Token: 0x17001364 RID: 4964
		// (get) Token: 0x06004401 RID: 17409 RVA: 0x000B9C3A File Offset: 0x000B7E3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FriendChallengeInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001365 RID: 4965
		// (get) Token: 0x06004402 RID: 17410 RVA: 0x000B9C4C File Offset: 0x000B7E4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FriendChallengeInfo.Descriptor;
			}
		}

		// Token: 0x06004403 RID: 17411 RVA: 0x000B9C53 File Offset: 0x000B7E53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendChallengeInfo()
		{
		}

		// Token: 0x06004404 RID: 17412 RVA: 0x000B9C74 File Offset: 0x000B7E74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendChallengeInfo(FriendChallengeInfo other) : this()
		{
			this.battleRecordStars_ = other.battleRecordStars_;
			this.remarkName_ = other.remarkName_;
			this.playerInfo_ = ((other.playerInfo_ != null) ? other.playerInfo_.Clone() : null);
			this.buffOne_ = other.buffOne_;
			this.buffTwo_ = other.buffTwo_;
			this.scoreId_ = other.scoreId_;
			this.lineupList_ = other.lineupList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004405 RID: 17413 RVA: 0x000B9D01 File Offset: 0x000B7F01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendChallengeInfo Clone()
		{
			return new FriendChallengeInfo(this);
		}

		// Token: 0x17001366 RID: 4966
		// (get) Token: 0x06004406 RID: 17414 RVA: 0x000B9D09 File Offset: 0x000B7F09
		// (set) Token: 0x06004407 RID: 17415 RVA: 0x000B9D11 File Offset: 0x000B7F11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BattleRecordStars
		{
			get
			{
				return this.battleRecordStars_;
			}
			set
			{
				this.battleRecordStars_ = value;
			}
		}

		// Token: 0x17001367 RID: 4967
		// (get) Token: 0x06004408 RID: 17416 RVA: 0x000B9D1A File Offset: 0x000B7F1A
		// (set) Token: 0x06004409 RID: 17417 RVA: 0x000B9D22 File Offset: 0x000B7F22
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string RemarkName
		{
			get
			{
				return this.remarkName_;
			}
			set
			{
				this.remarkName_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17001368 RID: 4968
		// (get) Token: 0x0600440A RID: 17418 RVA: 0x000B9D35 File Offset: 0x000B7F35
		// (set) Token: 0x0600440B RID: 17419 RVA: 0x000B9D3D File Offset: 0x000B7F3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerSimpleInfo PlayerInfo
		{
			get
			{
				return this.playerInfo_;
			}
			set
			{
				this.playerInfo_ = value;
			}
		}

		// Token: 0x17001369 RID: 4969
		// (get) Token: 0x0600440C RID: 17420 RVA: 0x000B9D46 File Offset: 0x000B7F46
		// (set) Token: 0x0600440D RID: 17421 RVA: 0x000B9D4E File Offset: 0x000B7F4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffOne
		{
			get
			{
				return this.buffOne_;
			}
			set
			{
				this.buffOne_ = value;
			}
		}

		// Token: 0x1700136A RID: 4970
		// (get) Token: 0x0600440E RID: 17422 RVA: 0x000B9D57 File Offset: 0x000B7F57
		// (set) Token: 0x0600440F RID: 17423 RVA: 0x000B9D5F File Offset: 0x000B7F5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffTwo
		{
			get
			{
				return this.buffTwo_;
			}
			set
			{
				this.buffTwo_ = value;
			}
		}

		// Token: 0x1700136B RID: 4971
		// (get) Token: 0x06004410 RID: 17424 RVA: 0x000B9D68 File Offset: 0x000B7F68
		// (set) Token: 0x06004411 RID: 17425 RVA: 0x000B9D70 File Offset: 0x000B7F70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScoreId
		{
			get
			{
				return this.scoreId_;
			}
			set
			{
				this.scoreId_ = value;
			}
		}

		// Token: 0x1700136C RID: 4972
		// (get) Token: 0x06004412 RID: 17426 RVA: 0x000B9D79 File Offset: 0x000B7F79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChallengeLineupList> LineupList
		{
			get
			{
				return this.lineupList_;
			}
		}

		// Token: 0x06004413 RID: 17427 RVA: 0x000B9D81 File Offset: 0x000B7F81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FriendChallengeInfo);
		}

		// Token: 0x06004414 RID: 17428 RVA: 0x000B9D90 File Offset: 0x000B7F90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FriendChallengeInfo other)
		{
			return other != null && (other == this || (this.BattleRecordStars == other.BattleRecordStars && !(this.RemarkName != other.RemarkName) && object.Equals(this.PlayerInfo, other.PlayerInfo) && this.BuffOne == other.BuffOne && this.BuffTwo == other.BuffTwo && this.ScoreId == other.ScoreId && this.lineupList_.Equals(other.lineupList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004415 RID: 17429 RVA: 0x000B9E38 File Offset: 0x000B8038
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BattleRecordStars != 0U)
			{
				num ^= this.BattleRecordStars.GetHashCode();
			}
			if (this.RemarkName.Length != 0)
			{
				num ^= this.RemarkName.GetHashCode();
			}
			if (this.playerInfo_ != null)
			{
				num ^= this.PlayerInfo.GetHashCode();
			}
			if (this.BuffOne != 0U)
			{
				num ^= this.BuffOne.GetHashCode();
			}
			if (this.BuffTwo != 0U)
			{
				num ^= this.BuffTwo.GetHashCode();
			}
			if (this.ScoreId != 0U)
			{
				num ^= this.ScoreId.GetHashCode();
			}
			num ^= this.lineupList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004416 RID: 17430 RVA: 0x000B9F01 File Offset: 0x000B8101
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004417 RID: 17431 RVA: 0x000B9F09 File Offset: 0x000B8109
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004418 RID: 17432 RVA: 0x000B9F14 File Offset: 0x000B8114
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BuffOne != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.BuffOne);
			}
			this.lineupList_.WriteTo(ref output, FriendChallengeInfo._repeated_lineupList_codec);
			if (this.playerInfo_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.PlayerInfo);
			}
			if (this.BuffTwo != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.BuffTwo);
			}
			if (this.RemarkName.Length != 0)
			{
				output.WriteRawTag(58);
				output.WriteString(this.RemarkName);
			}
			if (this.ScoreId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.ScoreId);
			}
			if (this.BattleRecordStars != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.BattleRecordStars);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004419 RID: 17433 RVA: 0x000B9FF4 File Offset: 0x000B81F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BattleRecordStars != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BattleRecordStars);
			}
			if (this.RemarkName.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.RemarkName);
			}
			if (this.playerInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PlayerInfo);
			}
			if (this.BuffOne != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffOne);
			}
			if (this.BuffTwo != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffTwo);
			}
			if (this.ScoreId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScoreId);
			}
			num += this.lineupList_.CalculateSize(FriendChallengeInfo._repeated_lineupList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600441A RID: 17434 RVA: 0x000BA0C4 File Offset: 0x000B82C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FriendChallengeInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BattleRecordStars != 0U)
			{
				this.BattleRecordStars = other.BattleRecordStars;
			}
			if (other.RemarkName.Length != 0)
			{
				this.RemarkName = other.RemarkName;
			}
			if (other.playerInfo_ != null)
			{
				if (this.playerInfo_ == null)
				{
					this.PlayerInfo = new PlayerSimpleInfo();
				}
				this.PlayerInfo.MergeFrom(other.PlayerInfo);
			}
			if (other.BuffOne != 0U)
			{
				this.BuffOne = other.BuffOne;
			}
			if (other.BuffTwo != 0U)
			{
				this.BuffTwo = other.BuffTwo;
			}
			if (other.ScoreId != 0U)
			{
				this.ScoreId = other.ScoreId;
			}
			this.lineupList_.Add(other.lineupList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600441B RID: 17435 RVA: 0x000BA192 File Offset: 0x000B8392
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600441C RID: 17436 RVA: 0x000BA19C File Offset: 0x000B839C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 26U)
				{
					if (num == 8U)
					{
						this.BuffOne = input.ReadUInt32();
						continue;
					}
					if (num == 18U)
					{
						this.lineupList_.AddEntriesFrom(ref input, FriendChallengeInfo._repeated_lineupList_codec);
						continue;
					}
					if (num == 26U)
					{
						if (this.playerInfo_ == null)
						{
							this.PlayerInfo = new PlayerSimpleInfo();
						}
						input.ReadMessage(this.PlayerInfo);
						continue;
					}
				}
				else if (num <= 58U)
				{
					if (num == 48U)
					{
						this.BuffTwo = input.ReadUInt32();
						continue;
					}
					if (num == 58U)
					{
						this.RemarkName = input.ReadString();
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.ScoreId = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.BattleRecordStars = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001ACA RID: 6858
		private static readonly MessageParser<FriendChallengeInfo> _parser = new MessageParser<FriendChallengeInfo>(() => new FriendChallengeInfo());

		// Token: 0x04001ACB RID: 6859
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001ACC RID: 6860
		public const int BattleRecordStarsFieldNumber = 14;

		// Token: 0x04001ACD RID: 6861
		private uint battleRecordStars_;

		// Token: 0x04001ACE RID: 6862
		public const int RemarkNameFieldNumber = 7;

		// Token: 0x04001ACF RID: 6863
		private string remarkName_ = "";

		// Token: 0x04001AD0 RID: 6864
		public const int PlayerInfoFieldNumber = 3;

		// Token: 0x04001AD1 RID: 6865
		private PlayerSimpleInfo playerInfo_;

		// Token: 0x04001AD2 RID: 6866
		public const int BuffOneFieldNumber = 1;

		// Token: 0x04001AD3 RID: 6867
		private uint buffOne_;

		// Token: 0x04001AD4 RID: 6868
		public const int BuffTwoFieldNumber = 6;

		// Token: 0x04001AD5 RID: 6869
		private uint buffTwo_;

		// Token: 0x04001AD6 RID: 6870
		public const int ScoreIdFieldNumber = 8;

		// Token: 0x04001AD7 RID: 6871
		private uint scoreId_;

		// Token: 0x04001AD8 RID: 6872
		public const int LineupListFieldNumber = 2;

		// Token: 0x04001AD9 RID: 6873
		private static readonly FieldCodec<ChallengeLineupList> _repeated_lineupList_codec = FieldCodec.ForMessage<ChallengeLineupList>(18U, ChallengeLineupList.Parser);

		// Token: 0x04001ADA RID: 6874
		private readonly RepeatedField<ChallengeLineupList> lineupList_ = new RepeatedField<ChallengeLineupList>();
	}
}
